<?php
namespace app\common\library\jobs;
use think\queue\Job;
class Base
{
    public function failed($name,$data){
        // 记录日志
        \think\Db::name('wanlshop_failed_job')->insert([
            'name' => $name,
            'data' => json_encode($data),
            'createtime' => time(),
            'updatetime' => time()
        ]);
    }
}